package vivek.project.pocketmoney.common.utils
{
	import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;
	import mx.controls.dataGridClasses.DataGridColumn;

	import vivek.project.pocketmoney.admin.model.AdminConstants;

	public class CommonConstants
	{
		public static const BUY:int=1;
		public static const EMIPAYMENT:int=1;
		public static const PREPAYMENT:int=2;
		public static const PREEMI:int=3;
		public static const INVESTMENT_ACCOUNTID:int=5;
		public static const INVESTMENT_CATEGORY_ID:int=100;
		public static const MUTUALFUND_CATEGORY_ID:int=11;
		public static const PROPERTY_ACCOUNTID:int=200;
		public static const PROPERTY_CATEGORY_ID:int=-2;
		public static const LOAN_ACCOUNTID:int=300;
		public static const LOAN_CATEGORY_ID:int=-1;
		public static const SELECT_ONE:String="...Select One...";
		public static const SELL:int=0;
		public static const STOCK_CATEGORY_ID:int=10;

		public static function expenseTypeLabelFunction(obj_data:Object, obj_dataGridColumn:AdvancedDataGridColumn):String
		{
			if (obj_data.cm_expensetype == AdminConstants.INCOME_CATEGORY_TYPE)
				return "Income";
			if (obj_data.cm_expensetype == AdminConstants.INVESTMENT_CATEGORY_TYPE)
				return "Investment";

			return "Expense";


		}

		public static function expenseTypeLabelFunctionDataGrid(obj_data:Object, obj_dataGridColumn:DataGridColumn):String
		{
			if (obj_data.cm_expensetype == AdminConstants.INCOME_CATEGORY_TYPE)
				return "Income";
			if (obj_data.cm_expensetype == AdminConstants.INVESTMENT_CATEGORY_TYPE)
				return "Investment";

			return "Expense";


		}

		public static function getExpenseTypeString(cm_expensetype:int):String
		{
			if (cm_expensetype == AdminConstants.INCOME_CATEGORY_TYPE)
				return "Income";
			if (cm_expensetype == AdminConstants.INVESTMENT_CATEGORY_TYPE)
				return "Investment";

			return "Expense";
		}

		public function CommonConstants()
		{
		}
	}
}